package com.yidian.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author whb
 * @create 2021-05-08 10:24
 * @desciption 返回给前端的消息封装
 */
@Data
public class Result implements Serializable {
    private Integer code; //返回的业务码 0：成功执行 1：发生错误
    private String message; //错误消息
    private Object other; //存储其它信息

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
